package com.ruoyi.erecord.device.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 设备业务对象 t_device_import_detail
 *
 * @author cc
 * @date 2023-04-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DeviceImportDetailBo extends BaseEntity {

    /**
     * ID
     */
    private String id;

    /**
     * 设备编码
     */
    @NotBlank(message = "设备编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 批次号码
     */
    @NotBlank(message = "批次号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String batchNo;

    /**
     * 设备类型
     */
    @NotBlank(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 设备类型_导入
     */
    @NotBlank(message = "设备类型_导入不能为空", groups = { AddGroup.class, EditGroup.class })
    private String typeImport;

    /**
     * SIM卡号
     */
    @NotBlank(message = "SIM卡号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String simCode;

    /**
     * 设备状态
     */
    @NotBlank(message = "设备状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 设备状态_导入
     */
    @NotBlank(message = "设备状态_导入不能为空", groups = { AddGroup.class, EditGroup.class })
    private String statusImport;

    /**
     * 人名/车牌号
     */
    @NotBlank(message = "人名/车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 设备品牌
     */
    @NotBlank(message = "设备品牌不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brand;

    /**
     * 联系人
     */
    private String contact;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 使用年限
     */
    private String serviceLife;

    /**
     * 生产商
     */
    private String producer;

    private Integer importState;


}
